<?php
ini_set('display_errors',1);            //错误信息
ini_set('display_startup_errors',1);    //php启动错误信息
error_reporting(-1);                    //打印出所有的 错误信息

include_once 'smarty/Smarty.class.php';
include_once 'dbio/menber.php';
$smarty = new Smarty();

$user_name = isset($_POST['user_name']) ? $_POST['user_name'] : '';
$user_pwd = isset($_POST['user_pwd']) ? $_POST['user_pwd'] : '';
$result = menber::getmenberInfo($user_name, $user_pwd);
//var_dump($result);
if ($result) {
    echo '成功';
} else {
    echo '失败';
}


$smarty->display("login.html");